package com.vogue.supplymall.example.domain.service.impl;

import com.vogue.supplymall.example.domain.dao.BaseDao;
import com.vogue.supplymall.example.domain.dao.OrderDao;
import com.vogue.supplymall.example.domain.model.Order;
import com.vogue.supplymall.example.domain.service.OrderService;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017-11-28.
 */
@Service("orderService")
public class OrderServiceImpl extends BaseServiceImpl<Order,Long> implements OrderService {

    private OrderDao orderDao;
    public OrderServiceImpl(BaseDao<Order, Long> baseDao) {
        super(baseDao);
        orderDao=(OrderDao)baseDao;
    }

    @Override
    public Order findById(Long id) {
        return orderDao.findById(id);
    }
}
